import { request } from '@/service/request'

export async function getDemographicInfo(idcard: string) {
  const res = await request.get<any>(
    "/health_records/HealthRecord/healthRecordInfo/list",
    {
      idNumber:idcard,
    },
    {
      useErrMsg: true,
    }
  );
  // res

  if (res?.success?.records) {
    return res.success.records[0];
  }
  return null;
}
